local houding_viewas = fk.CreateSkill {
  name = "lingling__houding_viewas&",
}

Fk:loadTranslationTable{
  ["lingling__houding_viewas&"] = "后定",
  [":lingling__houding_viewas&"] = "你可以将一张【杀】当【无懈可击】对王猛的【韬光养晦】使用。",

  ["#lingling__houding_viewas"] = "后定：你可以将一张【杀】当【无懈可击】对王猛的【韬光养晦】使用",
}

houding_viewas:addEffect("viewas", {
  mute = true,
  pattern = "nullification",
  prompt = "#lingling__houding_viewas",
  handly_pile = true,
  card_filter = function(self, player, to_select, selected)
    return #selected == 0 and Fk:getCardById(to_select).trueName == "slash"
  end,
  view_as = function(self, player, cards)
    if #cards ~= 1 then return end
    local card = Fk:cloneCard("nullification")
    card.skillName = houding_viewas.name
    card:addSubcard(cards[1])
    return card
  end,
  enabled_at_response = function (self, player, response)
    return not response
  end,
  enabled_at_nullification = function (self, player, data)
    return table.contains(data.card.skillNames, "lingling__houding")
  end,
})

return houding_viewas
